<div class="bjui-pageContent">
    <form action="{:U('fail')}" class="pageForm" data-toggle="validate" method="post" data-callback="signFailCallback">
        <!-- 菜单id号 -->
        <input type="hidden" name="orderId" value="{:I('get.orderId')}">
        <table class="table table-condensed table-hover">
            <tbody>
                <tr>
                    <td>
                        <label class="control-label x90">失败原因：</label>
                        <select name="reasonList" data-toggle="selectpicker">
                            <volist name="Think.config.FAIL_REASON" id="v">
                                <option value="{$v}">{$v}</option>
                            </volist>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="control-label x90">填写失败原因：</label>
                        <input type="text" name="failReason" value="" data-rule="required" size="20" />
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li>
            <button type="button" class="btn-close">关闭</button>
        </li>
        <li>
            <button type="submit" class="btn-default">保存</button>
        </li>
    </ul>
</div>
<script>
    $("select[name=reasonList]").change(function(){
        var failReason = $(this).val();
        $("input[name=failReason]").val(failReason);
    })
</script>